package com.open.center.jpa.model.page.by;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * 检索字段
 *
 * @author Riche's
 * @since 2025/5/23
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SearchBy<T> {

    @Schema(name = "key", description = "检索的字段")
    private String key;

    @Schema(name = "values", description = "检索的值列表")
    private List<T> values;

    @Schema(description = "大小写敏感敏感")
    private Boolean caseSensitive = false;

    public SearchBy(String key, List<T> values) {
        this.key = key;
        this.values = values;
    }
}
